package cn.itacm.pattern.creational.factory;

public class ProductB implements IProduct {

	public String getName() {
		return "ProductB";
	}

	/**
	 * @uml.property  name="productAFactory"
	 * @uml.associationEnd  inverse="productB:creational.factory.ProductAFactory"
	 */
	private ProductAFactory productAFactory;

	/**
	 * Getter of the property <tt>productAFactory</tt>
	 * @return   Returns the productAFactory.
	 * @uml.property  name="productAFactory"
	 */
	public ProductAFactory getProductAFactory() {
		return productAFactory;
	}

	/**
	 * Setter of the property <tt>productAFactory</tt>
	 * @param productAFactory   The productAFactory to set.
	 * @uml.property  name="productAFactory"
	 */
	public void setProductAFactory(ProductAFactory productAFactory) {
		this.productAFactory = productAFactory;
	}

}
